<div class="hero-unit">
    <h4 class="api_main_intro">商品库存</h4>
    <div class="well">
        获取商品库存
    </div>
    <h5>1.接口说明</h5>
    <h5>2.应用场景</h5>
    <h5>3.接口调用说明</h5>
    <h6>3.1 请求说明</h6>
    <table class="table table-bordered table-striped">
        <tr>
            <td>url</td>
            <td>http://www.api.100hg.com/apiTools/router.verify</td>
        </tr>
        <tr>
            <td>格式</td>
            <td>JSON</td>
        </tr>
        <tr>
            <td>请求方式</td>
            <td>GET</td>
        </tr>        
    </table>
    <h6>3.2 请求参数说明</h6>
    <table class="table table-bordered table-striped">
        <tr>
            <th>名称</th>
            <th>类型</th>
            <th>是否必须</th>
            <th>描述</th>
        </tr>
        <tr>
            <td>method</td>
			<td>String</td>
			<td>是</td>
            <td>固定为：product.stock</td>
        </tr>
        <tr>
            <td>product_id</td>
			<td>Int</td>
			<td>是</td>
            <td>商品Id</td>
        </tr>
        <tr>
            <td>size</td>
			<td>String</td>
			<td>否</td>
            <td>商品尺码(默认 全部尺码)</td>
        </tr>
        <tr>
            <td>color</td>
			<td>String</td>
			<td>否</td>
            <td>商品颜色(默认 全部颜色)</td>
        </tr>
    </table>
    <h6>3.3 返回参数说明</h6>
    <table class="table table-bordered table-striped">
        <tr>
            <th>名称</th>
            <th>类型</th>
            <th>描述</th>
        </tr>
        <tr>
            <td>state</td>
			<td>Int</td>
            <td>状态</td>
        </tr>
        <tr>
            <td>msg</td>
			<td>String</td>
            <td>错误信息</td>
        </tr>
        <tr>
            <td>result</td>
			<td>Json</td>
            <td>返回结果对象</td>
        </tr>
        <tr>
            <td>result.stock</td>
			<td>String</td>
            <td>库存数量：充足、少数、缺货、具体库存数字符串</td>
        </tr>
    </table>
</div>